﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;

namespace Service
{
    public class AlertRecordService_Design : IAlertRecordService
    {
        public Task<IEnumerable<AlertRecord>> GetAlertRecordsAsync(string userId = null)
        {
            return Task<IEnumerable<AlertRecord>>.Run(() =>
            {
                return new List<AlertRecord> {
                    new AlertRecord{
                        Id = Guid.NewGuid().ToString(),
                        RealDataId = "123456",
                        CountDataId = "1111111",
                        InsertTime = DateTime.Now,
                        Resolved = 1,
                    }
                }.AsEnumerable();
            });
        }

        public Task<int> ResolvedAlertRecord(List<string> ids)
        {
            throw new NotImplementedException();
        }
    }
}
